package com.book.manager.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: yfan-chen
 * @description:
 * @create: 2021-09-01 22:54
 **/
@ApiModel("借书结果信息")
@Data
public class BorrowBookResp {
    @ApiModelProperty(value = "借书成功 书籍信息")
    private List<PurchaseSuccess> purchaseSuccessList;
    @ApiModelProperty(value = "借书失败 书籍信息")
    private List<PurchaseFail> purchaseFailList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PurchaseSuccess{
        @ApiModelProperty(value = "书籍id")
        private int bookId;
        @ApiModelProperty(value = "书籍号，每本书籍唯一")
        private String bookCode;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PurchaseFail{
        @ApiModelProperty(value = "书籍号，每本书籍唯一")
        private String bookCode;
    }
}
